import { createApp } from 'vue'
//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from '@/App.vue'
//配置element-plus语言
//@ts-ignore忽略当前文件ts类型的检测
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
//自定义插件
import gloablComponent from '@/components'
import '@/styles/index.scss'
import router from './router'
import pinia from './store'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
//svg插件

app.use(gloablComponent)
app.use(router)
//引入路由鉴权文件
import './permission'
app.use(pinia)
//挂载
app.mount('#app')
